package com.wo.cloud.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wo.cloud.admin.dto.SysUserNotifyDto;
import com.wo.cloud.admin.entity.SysUserNotify;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author liry
 * @version 1.0
 * @date Created on 2021/5/15 22:43
 * Description:
 */
@Mapper
public interface SysUserNotifyMapper extends BaseMapper<SysUserNotify> {

    // 获取用户未读消息
    List<SysUserNotifyDto> getUnreadNotify(String userId);

    // 获取用户所有消息
    List<SysUserNotifyDto> getAllSysNotify(String userId);
}
